package com.xy.quartz.job;


import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;
import com.xy.quartz.service.DemoService;


public class JobDemo extends QuartzJobBean {
    @Autowired
    DemoService demoService;
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        demoService.jobMethod();
    }
}
